FROM registry.ops.heptagram.tech/devops/kubernetes/dockerimages/java/jre:8u151

WORKDIR /
COPY crm-web/target/crm-web-1.0.0-SNAPSHOT.jar /app.jar
ENV SPRING_PROFILES_ACTIVE prod
ENTRYPOINT [ "sh", "-c", "java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom -jar /app.jar --spring.profiles.active=$SPRING_PROFILES_ACTIVE"]
EXPOSE 8080